const path = require('path')

module.exports = {
  publicPath: '/',

  // 生产环境生产sourcemap
  productionSourceMap: false,

  configureWebpack: {
    resolve: {
      alias: { // 路径别名
        '_c': '@/components',
        '_v': '@/views',
        '_a': '@/api'
      }
    }
  },

  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'less',
      patterns: [
        path.resolve(__dirname, 'src/assets/less/variable.less'),
        path.resolve(__dirname, 'src/assets/less/mixin.less')
      ]
    }
  }
}
